package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(50)"`
}
type News struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30)"`
	Info    string `gorm:"type:varchar(50)"`
	Picture string `gorm:"type:varchar(30)"`
	Form    string `gorm:"type:varchar(50)"`
}
type Like struct {
	gorm.Model
	UserId int `gorm:"type:int"`
	NewsId int `gorm:"type:int"`
}
